from io import BytesIO

from docx.shared import Inches, RGBColor


class ImageStyle:
    def __init__(self,image:BytesIO, width, height, left_indent, right_indent, color: RGBColor):
        """图像"""
        self.image:BytesIO=image
        """宽度"""
        self.width: Inches = width
        """高度"""
        self.height: Inches = height
        """左间距"""
        self.left_indent: Inches = left_indent
        """右间距"""
        self.right_indent: Inches = right_indent
        """背景色"""
        self.color: RGBColor = color
